package com.dao.impl;

import org.springframework.stereotype.Repository;

import com.dao.BaseDao;
import com.dao.UserDao;
import com.entity.User;

@Repository("userDao")
public class UserDaoImpl extends BaseDao<User> implements UserDao{

	
	@Override
	public User login(String name, String password) {
		return (User) hibernateTemplate.find("from User where name =? and password=?", name,password).get(0);
	}

}
